home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tex / inputs / romanneg.sty < prev    next >
LaTeX Document  |  1991-05-21  |  2.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: romanneg.sty

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert DirectMusic Style (music/directMusicStyle) ext Unsupported
1% dexvert Microsoft Word Style Sheet (other/microsoftWordStyleSheet) ext Unsupported
1% dexvert Grand Theft Auto 2 Style data (other/grandTheftAuto2StyleData) ext Unsupported
1% dexvert KORG File (other/korgFile) ext Unsupported
1% dexvert MAGIX music studio Style (other/magixMusicStudioStyle) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 09 72 6f 6d 61 6e | 6e 65 67 2e 73 74 79 20 |% .roman|neg.sty |
|00000010| 2d 2d 2d 20 4c 61 54 65 | 58 20 73 74 79 6c 65 20 |--- LaTe|X style |
|00000020| 6f 70 74 69 6f 6e 20 66 | 6f 72 20 6e 65 67 61 74 |option f|or negat|
|00000030| 69 76 65 20 70 61 67 65 | 20 6e 75 6d 62 65 72 73 |ive page| numbers|
|00000040| 0a 25 09 09 09 20 77 68 | 65 6e 20 69 6e 20 72 6f |.%... wh|en in ro|
|00000050| 6d 61 6e 0a 25 0a 25 20 | 54 68 69 73 20 73 74 79 |man.%.% |This sty|
|00000060| 6c 65 20 6f 70 74 69 6f | 6e 20 73 68 6f 75 6c 64 |le optio|n should|
|00000070| 20 6e 6f 74 20 63 68 61 | 6e 67 65 20 74 68 65 20 | not cha|nge the |
|00000080| 61 70 70 65 61 72 61 6e | 63 65 20 6f 66 20 61 20 |appearan|ce of a |
|00000090| 64 6f 63 75 6d 65 6e 74 | 2c 0a 25 20 62 75 74 20 |document|,.% but |
|000000a0| 6d 65 72 65 6c 79 20 63 | 68 61 6e 67 65 20 74 68 |merely c|hange th|
|000000b0| 65 20 70 61 67 65 20 6e | 75 6d 62 65 72 73 20 28 |e page n|umbers (|
|000000c0| 61 73 20 64 65 66 69 6e | 65 64 20 62 79 20 5c 63 |as defin|ed by \c|
|000000d0| 6f 75 6e 74 30 29 20 69 | 6e 20 74 68 65 0a 25 20 |ount0) i|n the.% |
|000000e0| 44 56 49 20 66 69 6c 65 | 20 74 6f 20 62 65 20 6e |DVI file| to be n|
|000000f0| 65 67 61 74 69 76 65 20 | 77 68 65 6e 20 72 6f 6d |egative |when rom|
|00000100| 61 6e 20 70 61 67 65 6e | 75 6d 62 65 72 69 6e 67 |an pagen|umbering|
|00000110| 20 69 73 20 69 6e 20 75 | 73 65 2e 0a 0a 25 20 54 | is in u|se...% T|
|00000120| 6f 20 64 6f 20 74 68 69 | 73 2c 20 74 68 65 20 5c |o do thi|s, the \|
|00000130| 40 73 74 65 70 70 61 67 | 65 63 6f 75 6e 74 65 72 |@steppag|ecounter|
|00000140| 20 6d 61 63 72 6f 20 69 | 6e 63 72 65 6d 65 6e 74 | macro i|ncrement|
|00000150| 73 20 74 68 65 20 61 62 | 73 6f 6c 75 74 65 0a 25 |s the ab|solute.%|
|00000160| 20 76 61 6c 75 65 20 6f | 66 20 5c 63 6f 75 6e 74 | value o|f \count|
|00000170| 30 0a 5c 64 65 66 5c 40 | 73 74 65 70 70 61 67 65 |0.\def\@|steppage|
|00000180| 63 6f 75 6e 74 65 72 7b | 25 20 62 61 73 65 64 20 |counter{|% based |
|00000190| 6f 6e 20 5c 61 64 76 61 | 6e 63 65 70 61 67 65 6e |on \adva|ncepagen|
|000001a0| 6f 2c 20 54 65 58 62 6f | 6f 6b 2c 20 70 2e 33 36 |o, TeXbo|ok, p.36|
|000001b0| 32 0a 20 20 5c 69 66 6e | 75 6d 5c 63 40 70 61 67 |2. \ifn|um\c@pag|
|000001c0| 65 3c 5c 7a 40 20 5c 67 | 6c 6f 62 61 6c 5c 61 64 |e<\z@ \g|lobal\ad|
|000001d0| 76 61 6e 63 65 5c 63 40 | 70 61 67 65 5c 6d 40 6e |vance\c@|page\m@n|
|000001e0| 65 0a 20 20 5c 65 6c 73 | 65 5c 67 6c 6f 62 61 6c |e. \els|e\global|
|000001f0| 5c 61 64 76 61 6e 63 65 | 5c 63 40 70 61 67 65 5c |\advance|\c@page\|
|00000200| 40 6e 65 20 5c 66 69 7d | 20 25 20 69 6e 63 72 65 |@ne \fi}| % incre|
|00000210| 61 73 65 20 7c 63 40 70 | 61 67 65 7c 0a 0a 25 20 |ase |c@p|age|..% |
|00000220| 54 68 65 20 6f 75 74 70 | 75 74 20 72 6f 75 74 69 |The outp|ut routi|
|00000230| 6e 65 20 69 73 20 73 6c | 69 67 68 74 6c 79 20 6d |ne is sl|ightly m|
|00000240| 6f 64 69 66 69 65 64 20 | 73 6f 20 74 68 61 74 20 |odified |so that |
|00000250| 5c 40 73 74 65 70 70 61 | 67 65 63 6f 75 6e 74 65 |\@steppa|gecounte|
|00000260| 72 20 69 73 0a 25 20 75 | 73 65 64 2e 20 20 57 65 |r is.% u|sed. We|
|00000270| 20 61 73 73 75 6d 65 20 | 61 29 20 74 68 61 74 20 | assume |a) that |
|00000280| 74 68 65 20 70 61 67 65 | 20 63 6f 75 6e 74 65 72 |the page| counter|
|00000290| 20 69 73 20 6f 6e 6c 79 | 20 6d 6f 64 69 66 69 65 | is only| modifie|
|000002a0| 64 20 69 6e 20 74 68 65 | 0a 25 20 6f 75 74 70 75 |d in the|.% outpu|
|000002b0| 74 20 72 6f 75 74 69 6e | 65 2c 20 61 6e 64 20 62 |t routin|e, and b|
|000002c0| 79 20 5c 70 61 67 65 6e | 75 6d 62 65 72 69 6e 67 |y \pagen|umbering|
|000002d0| 2c 20 61 6e 64 0a 25 20 | 62 29 20 74 68 65 20 6f |, and.% |b) the o|
|000002e0| 75 74 70 75 74 20 72 6f | 75 74 69 6e 65 20 62 65 |utput ro|utine be|
|000002f0| 6c 6f 77 20 69 73 20 6f | 74 68 65 72 77 69 73 65 |low is o|therwise|
|00000300| 20 69 64 65 6e 74 69 63 | 61 6c 20 74 6f 20 74 68 | identic|al to th|
|00000310| 61 74 20 64 65 66 69 6e | 65 64 0a 25 20 62 79 20 |at defin|ed.% by |
|00000320| 4c 61 54 65 58 2e 20 20 | 54 68 69 73 20 73 68 6f |LaTeX. |This sho|
|00000330| 75 6c 64 20 62 65 20 63 | 68 65 63 6b 65 64 20 62 |uld be c|hecked b|
|00000340| 65 66 6f 72 65 20 69 6e | 73 74 61 6c 6c 61 74 69 |efore in|stallati|
|00000350| 6f 6e 2e 0a 5c 64 65 66 | 5c 40 6f 75 74 70 75 74 |on..\def|\@output|
|00000360| 70 61 67 65 7b 5c 62 65 | 67 69 6e 67 72 6f 75 70 |page{\be|gingroup|
|00000370| 5c 63 61 74 63 6f 64 65 | 60 5c 20 3d 31 30 20 5c |\catcode|`\ =10 \|
|00000380| 69 66 40 73 70 65 63 69 | 61 6c 70 61 67 65 20 0a |if@speci|alpage .|
|00000390| 20 20 20 20 20 5c 67 6c | 6f 62 61 6c 5c 40 73 70 | \gl|obal\@sp|
|000003a0| 65 63 69 61 6c 70 61 67 | 65 66 61 6c 73 65 5c 40 |ecialpag|efalse\@|
|000003b0| 6e 61 6d 65 75 73 65 7b | 70 73 40 5c 40 73 70 65 |nameuse{|ps@\@spe|
|000003c0| 63 69 61 6c 73 74 79 6c | 65 7d 5c 66 69 0a 20 20 |cialstyl|e}\fi. |
|000003d0| 20 20 20 5c 69 66 40 74 | 77 6f 73 69 64 65 20 0a | \if@t|woside .|
|000003e0| 20 20 20 20 20 20 20 5c | 69 66 6f 64 64 5c 63 6f | \|ifodd\co|
|000003f0| 75 6e 74 5c 7a 40 20 5c | 6c 65 74 5c 40 74 68 65 |unt\z@ \|let\@the|
|00000400| 68 65 61 64 5c 40 6f 64 | 64 68 65 61 64 20 5c 6c |head\@od|dhead \l|
|00000410| 65 74 5c 40 74 68 65 66 | 6f 6f 74 5c 40 6f 64 64 |et\@thef|oot\@odd|
|00000420| 66 6f 6f 74 0a 20 20 20 | 20 20 20 20 20 20 20 20 |foot. | |
|00000430| 20 5c 6c 65 74 5c 40 74 | 68 65 6d 61 72 67 69 6e | \let\@t|hemargin|
|00000440| 5c 6f 64 64 73 69 64 65 | 6d 61 72 67 69 6e 0a 20 |\oddside|margin. |
|00000450| 20 20 20 20 20 20 20 20 | 20 5c 65 6c 73 65 20 5c | | \else \|
|00000460| 6c 65 74 5c 40 74 68 65 | 68 65 61 64 5c 40 65 76 |let\@the|head\@ev|
|00000470| 65 6e 68 65 61 64 0a 20 | 20 20 20 20 20 20 20 20 |enhead. | |
|00000480| 20 5c 6c 65 74 5c 40 74 | 68 65 66 6f 6f 74 5c 40 | \let\@t|hefoot\@|
|00000490| 65 76 65 6e 66 6f 6f 74 | 20 5c 6c 65 74 5c 40 74 |evenfoot| \let\@t|
|000004a0| 68 65 6d 61 72 67 69 6e | 5c 65 76 65 6e 73 69 64 |hemargin|\evensid|
|000004b0| 65 6d 61 72 67 69 6e 0a | 20 20 20 20 20 5c 66 69 |emargin.| \fi|
|000004c0| 5c 66 69 0a 20 20 20 20 | 20 5c 73 68 69 70 6f 75 |\fi. | \shipou|
|000004d0| 74 0a 20 20 20 20 20 5c | 76 62 6f 78 7b 5c 6e 6f |t. \|vbox{\no|
|000004e0| 72 6d 61 6c 73 69 7a 65 | 20 5c 62 61 73 65 6c 69 |rmalsize| \baseli|
|000004f0| 6e 65 73 6b 69 70 5c 7a | 40 20 5c 6c 69 6e 65 73 |neskip\z|@ \lines|
|00000500| 6b 69 70 5c 7a 40 0a 20 | 20 20 20 20 20 20 20 20 |kip\z@. | |
|00000510| 20 20 5c 76 73 6b 69 70 | 20 5c 74 6f 70 6d 61 72 | \vskip| \topmar|
|00000520| 67 69 6e 20 5c 6d 6f 76 | 65 72 69 67 68 74 5c 40 |gin \mov|eright\@|
|00000530| 74 68 65 6d 61 72 67 69 | 6e 0a 20 20 20 20 20 20 |themargi|n. |
|00000540| 20 20 20 20 20 5c 76 62 | 6f 78 7b 5c 73 65 74 62 | \vb|ox{\setb|
|00000550| 6f 78 5c 40 74 65 6d 70 | 62 6f 78 61 0a 20 20 20 |ox\@temp|boxa. |
|00000560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000570| 5c 76 62 6f 78 20 74 6f | 5c 68 65 61 64 68 65 69 |\vbox to|\headhei|
|00000580| 67 68 74 7b 5c 76 66 69 | 6c 20 5c 68 62 6f 78 20 |ght{\vfi|l \hbox |
|00000590| 74 6f 5c 74 65 78 74 77 | 69 64 74 68 7b 5c 40 74 |to\textw|idth{\@t|
|000005a0| 68 65 68 65 61 64 7d 7d | 0a 20 20 20 20 20 20 20 |hehead}}|. |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 5c 64 70 5c 40 74 | | \dp\@t|
|000005c0| 65 6d 70 62 6f 78 61 5c | 7a 40 0a 20 20 20 20 20 |empboxa\|z@. |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 62 6f 78 | | \box|
|000005e0| 5c 40 74 65 6d 70 62 6f | 78 61 0a 20 20 20 20 20 |\@tempbo|xa. |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 76 73 6b | | \vsk|
|00000600| 69 70 20 5c 68 65 61 64 | 73 65 70 0a 20 20 20 20 |ip \head|sep. |
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 62 6f | | \bo|
|00000620| 78 5c 40 6f 75 74 70 75 | 74 62 6f 78 0a 20 20 20 |x\@outpu|tbox. |
|00000630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5c 62 | | \b|
|00000640| 61 73 65 6c 69 6e 65 73 | 6b 69 70 5c 66 6f 6f 74 |aselines|kip\foot|
|00000650| 73 6b 69 70 0a 20 20 20 | 20 20 20 20 20 20 20 20 |skip. | |
|00000660| 20 20 20 20 20 20 5c 68 | 62 6f 78 20 74 6f 5c 74 | \h|box to\t|
|00000670| 65 78 74 77 69 64 74 68 | 7b 5c 40 74 68 65 66 6f |extwidth|{\@thefo|
|00000680| 6f 74 7d 7d 7d 5c 67 6c | 6f 62 61 6c 5c 40 63 6f |ot}}}\gl|obal\@co|
|00000690| 6c 68 74 5c 74 65 78 74 | 68 65 69 67 68 74 0a 20 |lht\text|height. |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 5c 65 6e 64 67 72 | | \endgr|
|000006b0| 6f 75 70 5c 40 73 74 65 | 70 70 61 67 65 63 6f 75 |oup\@ste|ppagecou|
|000006c0| 6e 74 65 72 5c 6c 65 74 | 5c 66 69 72 73 74 6d 61 |nter\let|\firstma|
|000006d0| 72 6b 5c 62 6f 74 6d 61 | 72 6b 7d 20 25 20 3c 2d |rk\botma|rk} % <-|
|000006e0| 2d 20 6f 6e 6c 79 0a 09 | 09 09 09 09 09 09 20 20 |- only..|...... |
|000006f0| 20 20 20 25 20 74 68 69 | 73 20 6c 69 6e 65 20 63 | % thi|s line c|
|00000700| 68 61 6e 67 65 64 0a 09 | 20 20 20 0a 25 20 4d 6f |hanged..| .% Mo|
|00000710| 64 69 66 69 65 64 20 76 | 65 72 73 69 6f 6e 20 6f |dified v|ersion o|
|00000720| 66 20 74 68 65 20 70 61 | 67 65 6e 75 6d 62 65 72 |f the pa|genumber|
|00000730| 69 6e 67 20 63 6f 6d 6d | 61 6e 64 20 74 68 61 74 |ing comm|and that|
|00000740| 20 73 65 74 73 20 5c 63 | 6f 75 6e 74 30 20 28 61 | sets \c|ount0 (a|
|00000750| 6b 61 0a 25 20 5c 63 40 | 70 61 67 65 29 20 74 6f |ka.% \c@|page) to|
|00000760| 20 2d 31 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 | -1 rath|er than |
|00000770| 31 20 69 66 20 72 6f 6d | 61 6e 20 6e 75 6d 62 65 |1 if rom|an numbe|
|00000780| 72 69 6e 67 20 69 73 20 | 73 70 65 63 69 66 69 65 |ring is |specifie|
|00000790| 64 2e 0a 5c 64 65 66 5c | 70 61 67 65 6e 75 6d 62 |d..\def\|pagenumb|
|000007a0| 65 72 69 6e 67 23 31 7b | 7b 25 0a 20 20 5c 64 65 |ering#1{|{%. \de|
|000007b0| 66 5c 40 74 6d 70 61 7b | 23 31 7d 20 5c 64 65 66 |f\@tmpa{|#1} \def|
|000007c0| 5c 40 74 6d 70 62 7b 72 | 6f 6d 61 6e 7d 20 5c 64 |\@tmpb{r|oman} \d|
|000007d0| 65 66 5c 40 74 6d 70 63 | 7b 52 6f 6d 61 6e 7d 0a |ef\@tmpc|{Roman}.|
|000007e0| 20 20 5c 69 66 78 5c 40 | 74 6d 70 61 5c 40 74 6d | \ifx\@|tmpa\@tm|
|000007f0| 70 62 20 25 20 72 6f 6d | 61 6e 20 6f 70 74 69 6f |pb % rom|an optio|
|00000800| 6e 3b 20 73 65 74 20 2d | 76 65 20 70 61 67 65 20 |n; set -|ve page |
|00000810| 6e 75 6d 62 65 72 2e 0a | 20 20 20 20 5c 67 6c 6f |number..| \glo|
|00000820| 62 61 6c 5c 63 40 70 61 | 67 65 20 5c 6d 40 6e 65 |bal\c@pa|ge \m@ne|
|00000830| 0a 20 20 5c 65 6c 73 65 | 5c 69 66 78 5c 40 74 6d |. \else|\ifx\@tm|
|00000840| 70 61 5c 40 74 6d 70 63 | 0a 20 20 20 20 5c 67 6c |pa\@tmpc|. \gl|
|00000850| 6f 62 61 6c 5c 63 40 70 | 61 67 65 20 5c 6d 40 6e |obal\c@p|age \m@n|
|00000860| 65 0a 20 20 5c 65 6c 73 | 65 0a 20 20 20 20 5c 67 |e. \els|e. \g|
|00000870| 6c 6f 62 61 6c 5c 63 40 | 70 61 67 65 20 5c 40 6e |lobal\c@|page \@n|
|00000880| 65 0a 20 20 5c 66 69 5c | 66 69 0a 20 20 5c 67 64 |e. \fi\|fi. \gd|
|00000890| 65 66 5c 74 68 65 70 61 | 67 65 7b 5c 63 73 6e 61 |ef\thepa|ge{\csna|
|000008a0| 6d 65 20 40 23 31 5c 65 | 6e 64 63 73 6e 61 6d 65 |me @#1\e|ndcsname|
|000008b0| 20 5c 63 40 70 61 67 65 | 7d 7d 7d 0a 0a 25 20 74 | \c@page|}}}..% t|
|000008c0| 68 65 20 6d 6f 64 69 66 | 69 65 64 20 76 65 72 73 |he modif|ied vers|
|000008d0| 69 6f 6e 73 20 6f 66 20 | 5c 40 72 6f 6d 61 6e 20 |ions of |\@roman |
|000008e0| 61 6e 64 20 5c 40 52 6f | 6d 61 6e 20 64 65 61 6c |and \@Ro|man deal|
|000008f0| 20 77 69 74 68 20 6e 65 | 67 61 74 69 76 65 73 0a | with ne|gatives.|
|00000900| 5c 64 65 66 5c 40 72 6f | 6d 61 6e 6e 75 6d 65 72 |\def\@ro|mannumer|
|00000910| 61 6c 23 31 7b 5c 69 66 | 6e 75 6d 23 31 3c 30 20 |al#1{\if|num#1<0 |
|00000920| 5c 72 6f 6d 61 6e 6e 75 | 6d 65 72 61 6c 2d 23 31 |\romannu|meral-#1|
|00000930| 20 5c 65 6c 73 65 5c 72 | 6f 6d 61 6e 6e 75 6d 65 | \else\r|omannume|
|00000940| 72 61 6c 23 31 20 5c 66 | 69 7d 0a 5c 64 65 66 5c |ral#1 \f|i}.\def\|
|00000950| 40 72 6f 6d 61 6e 23 31 | 7b 5c 40 72 6f 6d 61 6e |@roman#1|{\@roman|
|00000960| 6e 75 6d 65 72 61 6c 20 | 23 31 7d 0a 5c 64 65 66 |numeral |#1}.\def|
|00000970| 5c 40 52 6f 6d 61 6e 23 | 31 7b 5c 65 78 70 61 6e |\@Roman#|1{\expan|
|00000980| 64 61 66 74 65 72 5c 75 | 70 70 65 72 63 61 73 65 |dafter\u|ppercase|
|00000990| 5c 65 78 70 61 6e 64 61 | 66 74 65 72 7b 5c 40 72 |\expanda|fter{\@r|
|000009a0| 6f 6d 61 6e 6e 75 6d 65 | 72 61 6c 20 23 31 7d 7d |omannume|ral #1}}|
|000009b0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+